//导入vue-router
import { createRouter, createWebHistory } from 'vue-router'
//导入组件
import deng from '/pages/index/denglu/denglu.vue'
import zhu from '/pages/index/denglu/zhuce.vue'
//定义路由关系
const luyou = [
    { path: '/', component: deng },

    { path: '/main', component: zhu,
        
     }
]
//创建路由器对象
const router = createRouter({
    history: createWebHistory(),
    routes: luyou
});
export default router